import { SVGProps } from "react";

export type IconSvgProps = SVGProps<SVGSVGElement> & {
  size?: number;
};

// 用户信息类型
export interface UserInfo {
  id: number;
  username: string;
  phone: string;
  nickname: string;
  logo: string;
}

// 登录请求参数类型
export interface LoginRequest {
  phone: string;
  password: string;
  clientId?: string;
  grantType?: string;
  userType?: string;
}

// 登录响应数据类型
export interface LoginResponseData {
  token: string;
  tokenType: string;
  expireIn: number;
  refreshToken: string;
  userInfo: UserInfo;
}

// 通用API响应类型
export interface ApiResponse<T = any> {
  code: string;
  message: string;
  data: T;
  param: Record<string, any>;
}